#include <misc/argvutils.h>
#include <dataspace/dataspace.h>

int main(int argc, char** argv)
{
  try {
    DictVector<string, string> args = argv_utils::parse_to_dict(argc, argv);
    
    string ds_fn = args.get("--ds-fn");
    DataSpace ds;
    ds.load(ds_fn, false);
    
    DataSpaceRange ds_range(&ds);
    ds_range.set_left_right("weight", DynObject(0.3));
    ds_range.set_left_right("color", DynObject(CharN<1>("E")));
    
    ds_range.traverse(0);
  } catch (Error& e) {
    cerr << "Error caught: " << e.msg() << endl;
  }
}


